package com.example.rae.base;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author YangZeRong
 * @Date 2022/4/10 13:39
 * @Version 1.0
 */
// 服务接口信息，统一规范响应服务接口信息
@Data
@Slf4j
public class ResponseBase {

    private Integer code;
    private String msg;
    private Object data;

    public ResponseBase() {
    }

    public ResponseBase(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseBase{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
